<template>
	<scroll-view class="scroll-style" scroll-y>
		<view class="content">
			<u-parse :content="model.content"></u-parse>
		</view>
	</scroll-view>
</template>

<script>
	import { detail } from '@/api/media/index'
	export default {
		data() {
			return {
				id: undefined,
				model: {}
			}
		},
		onLoad(options) {
			this.id = options.id;
			this.loadData();
		},
		methods: {
			loadData() {
				detail({id:this.id}, response => {
					this.model = response;
					uni.setNavigationBarTitle({
						title: response.title
					})
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.content {
		padding: 20rpx 30rpx;
	}
</style>